<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script src="./js/vue.js"></script>
    <div class="box">
        <!-- v-for遍历数组 -->
        <ul v-for="item in items">
            <li>{{parent}}--{{item.title}}</li>
        </ul>
    </div>
    <script>
        const vm_for = new Vue({
            el: '.box',
            data: {
                parent: '动画片',
                items: [
                    { title: '小猪佩奇' },
                    { title: '汪汪队' },
                    { title: '恐龙阿旺' }
                ],
                objects: {
                    name: '莱德',
                    sex: 'male',
                    age: 12
                }
            }
        })
    </script>
</body>

</html>